﻿using BootstrapBlazor.Components;
using CodeMan.Domain.Shared.Enums;
using Microsoft.Extensions.Localization;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;

namespace CodeMan.Application.Contracts.ClassGens
{
    public class ClassGenDTOCreateUpdate
    {
        [AutoGenerateColumn(Ignore = true)]
        public Int64 Id { get; set; }
        /// <summary>
        /// 类名
        /// </summary> 
        [AutoGenerateColumn(Order = 1, Filterable = true, Sortable = true)]
        public string Name { get; set; }
        /// <summary>
        /// 空间、模块
        /// </summary>
        [AutoGenerateColumn(Order = 2, Filterable = true, Sortable = true)]
        public string Namespace { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        [AutoGenerateColumn(Order = 5, Filterable = true, Sortable = true)]
        public string Desc { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        [AutoGenerateColumn(Order = 7, Sortable = true, Width = 100)]
        public ClassTypeEnum Type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("是/否")]
        [AutoGenerateColumn(Order = 30, Width = 70, ComponentType = typeof(Switch))]
        public bool Complete { get; set; } = true;

        /// <summary>
        /// 来源标记
        /// </summary>
        public FromTypeEnum FromType { get; set; }
    }
}
